From 8b863c24c3f170265dbca16c7b895ac2cb63be62 Mon Sep 17 00:00:00 2001 From: Edward E Date: Fri, 7 Apr 2017 01:47:45 -0500 Subject: [PATCH] babl-cache: fix previous cache file persisting on Win32 Cygwin's rename() won't overwrite an existing file, so remove() it first --- babl/babl-cache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/babl/babl-cache.c b/babl/babl-cache.c index f498115..abd6f0a 100644 --- a/babl/babl-cache.c +++ b/babl/babl-cache.c @@ -188,6 +188,9 @@ void babl_store_db (void) } fclose (dbfile); +#ifdef _WIN32 + remove (fish_cache_path ()); +#endif rename (tmpp, fish_cache_path()); free (tmpp); } -- 2.30.2